package com.example.shaoying.yuejian.service;

/**
 * Created by ShaoYing on 2017/10/9.
 */
import com.example.shaoying.yuejian.javabean.DetailAcyivity;
import com.example.shaoying.yuejian.javabean.Game;
import com.example.shaoying.yuejian.javabean.ListResult;
import com.example.shaoying.yuejian.javabean.ShaiTuList;
import com.example.shaoying.yuejian.javabean.TeaInfo;
import com.example.shaoying.yuejian.javabean.TeaList;

import java.util.List;

import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface photoService {


    //晒图列表
    @GET("lists/mod/shaitu/related/1")
    Call<List<ShaiTuList>> getShaiTuList();
    //发布晒图
    @Multipart
    @POST("fcreate/mod/shaitu/userid/{userid}/title/{title}")
    Call<ResponseBody> addpost(
            @Path("userid") String uid,
            @Path("title") String title,
            //@Path("club_id") String cid,
            @Part MultipartBody.Part file
    );

}
